<html>
    <head>
        <title>Twitter Friend Finder</title>
    </head>
    <body>
        <form method="POST" action="">
            <ul>
                {{ form.as_ul }}
                <li><input type="submit" value="Find Twitter Friends"></input></li>
            </ul>
        </form>
        {% if logged_in %}
            {% if friends %}
                <p>Congratulations!  We have found some friends of yours on Twitter!</p>
                <ul>
                    {% for name,href in friends %}
                        <li><a href="{{ href }}">{{ name }}</a></li>
                    {% endfor %}
                </ul>
            {% else %}
                <p>Looks like you've done a good job adding friends on Twitter.  There's nobody left to add!</p>
            {% endif %}
        {% endif %}
    </body>
</html>